/* eslint-disable */
import Vue from 'vue'
import '@babel/polyfill'
import router from '@/router'
import store from '@/store'

import '@/common/style/reset.less'
import '@/common/style/common.less'
import App from './App.vue'
import './permission.js'
import * as utils from '@/common/utils/index' // 工具集
// 自定义指令
import Directives from '@/common/directives'
Vue.use(Directives)

// 加载antd按需组件
import LoadAntd from '@/common/antd'

// 注册全局组件
import { previewImage } from './common/utils/PreviewImage'


const { VUE_APP_ENV } = process.env
LoadAntd(Vue)
// 模板信息
if (VUE_APP_ENV === 'development') {
  utils.LOG()
}

Vue.config.productionTip = false
Vue.prototype.$utils = utils
// 全局注入功能
Vue.mixin({
  methods: {
    _previewImage: previewImage
  }
})

new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
